/*
 * @Description:
 * @Author: william
 * @Date: 2025-02-05 09:08:10
 * @LastEditors: william
 * @LastEditTime: 2025-09-12 10:23:21
 */
const prefix = '/car/vehicle'
const prefix2 = '/car/order'
const prefix4 = '/car/vehicle/schedule'
const prefix5 = '/car/order/expense'

// =====================  车队管理 =====================

// -------------------  查询车辆列表 -------------------
export const apiVehicleList = data => g_https.post(`${prefix}/list`, data)

// -------------------  新增车辆 -------------------
export const apiVehicleCreate = data => g_https.post(`${prefix}/create`, data)

// -------------------  查询车辆详情 -------------------
export const apiVehicleDetail = data => g_https.post(`${prefix}/detail`, data)

// -------------------  修改车辆 -------------------
export const apiVehicleUpdate = data => g_https.post(`${prefix}/update`, data)

// -------------------  删除车辆 -------------------
export const apiVehicleDelete = data => g_https.post(`${prefix}/delete`, data)

// -------------------  生成车辆二维码 -------------------
export const apiVehicleQrcode = data => g_https.get(`${prefix}/qrcode`, data)

// =====================  订车管理 =====================

// -------------------  查询订单列表 -------------------
export const apiOrderList = data => g_https.post(`${prefix2}/list`, data)

// -------------------  新增订单 -------------------
export const apiOrderCreate = data => g_https.post(`${prefix2}/create`, data)

// -------------------  查询订单详情 -------------------
export const apiOrderDetail = data => g_https.post(`${prefix2}/detail`, data)

// -------------------  查询车辆分配列表 -------------------
export const apiOrderVehicleList = data =>
  g_https.post(`${prefix2}/vehicleList`, data)

// -------------------  修改订单 -------------------
export const apiOrderUpdate = data => g_https.post(`${prefix2}/update`, data)

// -------------------  删除订单 -------------------
export const apiOrderDelete = data => g_https.post(`${prefix2}/delete`, data)

// -------------------  确认订单 -------------------
export const apiOrderConfirm = data => g_https.post(`${prefix2}/confirm`, data)

// -------------------  确认车辆询价 -------------------
export const apiOrderConfirmAskOrder = data =>
  g_https.post(`${prefix2}/confirmAskOrder`, data)

// -------------------  取消订单 -------------------
export const apiOrderCancel = data => g_https.post(`${prefix2}/cancel`, data)

// -------------------  自动分配车辆 -------------------
export const apiOrderAutoDispatch = data =>
  g_https.post(`${prefix2}/autoDispatchVehicle`, data)

// -------------------  查询司机确认订单信息 -------------------
export const apiOrderDriverConfirm = data =>
  g_https.get(`${prefix2}/driverConfirm`, data)

// -------------------  查询司机确认订单信息 -------------------
export const apiOrderDriverConfirm2 = data =>
  g_https.post(`${prefix2}/driverConfirm`, {}, {}, data)

// -------------------  司机确认订单完成 -------------------
export const apiOrderDriverComplete = data =>
  g_https.get(`${prefix2}/driverComplete`, data)

// -------------------  司机确认订单完成 -------------------
export const apiOrderDriverComplete2 = data =>
  g_https.post(`${prefix2}/driverComplete`, data)

// -------------------  查询优化的订单排车日程列表 -------------------
export const apiOrderQueryVehicle = data =>
  g_https.post(`${prefix2}/queryVehicleSchedule`, data)

// -------------------  优化订单排车 -------------------
export const apiOrderOptimizeVehicle = data =>
  g_https.post(`${prefix2}/optimizeVehicleSchedule`, data)

// -------------------  确认优化排车信息 -------------------
export const apiOrderConfirmVehicle = data =>
  g_https.post(`${prefix2}/confirmVehicleSchedule`, data)

// =====================  车辆日程管理 =====================

// -------------------  查询车辆日程列表 -------------------
export const apiScheduleList = data => g_https.post(`${prefix4}/list`, data)

// -------------------  新增车辆日程 -------------------
export const apiScheduleCreate = data => g_https.post(`${prefix4}/create`, data)

// -------------------  查询车辆日程详情 -------------------
export const apiScheduleDetail = data => g_https.get(`${prefix4}/detail`, data)

// -------------------  修改车辆日程 -------------------
export const apiScheduleUpdate = data => g_https.post(`${prefix4}/update`, data)

// -------------------  查询车辆日程日历信息 -------------------
export const apiScheduleQueryCalendarInfo = data =>
  g_https.post(`${prefix4}/queryCalendarInfo`, data)

// -------------------  删除车辆日程 -------------------
export const apiScheduleDelete = data => g_https.post(`${prefix4}/delete`, data)

// =====================  成本管理 =====================

// -------------------  查询订车费用列表 -------------------
export const apiExpenseList = data => g_https.post(`${prefix5}/list`, data)

// -------------------  新增订车费用 -------------------
export const apiExpenseCreate = data => g_https.post(`${prefix5}/create`, data)

// -------------------  删除订车费用 -------------------
export const apiExpenseDelete = data => g_https.post(`${prefix5}/delete`, data)

// -------------------  修改订车费用 -------------------
export const apiExpenseUpdate = data => g_https.post(`${prefix5}/update`, data)
